const express=require('express')
const router=express.Router()
const hanleRouter=require('../routerHandler/user')
const {reglogin}=require('../utils/index')
// 1. 导入 @escook/express-joi
const expressJoi = require('@escook/express-joi')

router.post('/login', expressJoi(reglogin),hanleRouter.login)

router.post('/register', expressJoi(reglogin),hanleRouter.register)

module.exports=router